#include<bits/stdc++.h>
using namespace std;
int n,ans;
int r[100002];
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    scanf("%d",&n);
    int i;
    for(i=1;i<=n;i++)
        scanf("%d",&r[i]);
    sort(r+1,r+1+n);
    int s=1;
    for(i=2;i<=n;i++)
    {
        if(r[i]>r[s])
            s++;
    }
    ans=n-s+1;
    printf("%d",ans);
    return 0;
}
